package com.sugree.thairath.breakingnews;

import android.app.Service;
import android.appwidget.AppWidgetManager;
import android.appwidget.AppWidgetProvider;
import android.content.Context;
import android.content.Intent;
import android.os.Binder;
import android.os.IBinder;

import com.sugree.base.BreakingNewsUpdateService;

public class BreakingNewsWidget extends AppWidgetProvider {
	private static final String TAG = "BreakingNewsWidget";

    @Override
    public void onUpdate(Context context, AppWidgetManager appWidgetManager,
            int[] appWidgetIds) {
        // To prevent any ANR timeouts, we perform the update in a service
        context.startService(new Intent(context, BreakingNewsService.class));
    }
}
